from flask import Flask
from view.user_bp import user_bp
from flask_cors import CORS
def create_app(config):
    flask_app=Flask(__name__)
    flask_app.config.from_object(config)
    flask_app.register_blueprint(user_bp)
    CORS(flask_app)
    return flask_app
